home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 1.iso
/
toolbox
/
src
/
exampleCode
/
opengl
/
GLUT
/
mkmkfiles.imake
< prev
next >
Wrap
Text File
|
1996-11-11
|
1KB
|
44 lines
#!/bin/csh -f
#
# Let user know what's going on...
#
set verbose
#
mv -f Makefile Makefile.bak >& /dev/null
#
# Unfortunately, some systems vary where they find imake, imake's config
# files, and/or xmkmf. You may need to be clever to get Makefiles
# generated if your system is non-standard. The following tries its best
# to generate the Makefiles for you...
#
if ( -d /usr/lib/X11/config) then
if ( -x /usr/bin/X11/imake ) then
# Things are in standard places
/usr/bin/X11/imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=.
else
# Hope imake is on your path!
imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=.
endif
else # Try non-standard places vendor locations
# Look for IBM's non-standard placement of imake
if ( -d /usr/lpp/X11/Xamples/config) then
if ( -x /usr/lpp/X11/Xamples/config/imake ) then
# Things are in non-standard IBM AIX places
/usr/lpp/X11/Xamples/config/imake -DUseInstalled -I/usr/lpp/X11/Xamples/config -DTOPDIR=.
else
# Hope imake is on your path!
imake -DUseInstalled -I/usr/lpp/X11/Xamples/config -DTOPDIR=.
endif
else
# Look for Sun's non-standard placement of imake and xmkmf
if ( -x /usr/openwin/bin/xmkmf ) then
/usr/openwin/bin/xmkmf
else
# Hope xmkmf is on your path!
xmkmf
endif
endif
endif
make Makefiles
make depend